package ru.spbu.math.android.cbrf.charts;

import java.util.Date;

/**
 * @author  Nikita
 */
public class DateValue {
    private Date date;
    /**
	 * @uml.property  name="value"
	 */
    private double value;

    DateValue(Date date, double value) {
        this.date = date;
        this.value = value;
    }

    public Date getData() {
        return date;
    }

    /**
	 * @return
	 * @uml.property  name="value"
	 */
    public double getValue() {
        return value;
    }

    public String toString() {
        return String.format("%.2f", value) + " \n" + String.format("%.12s", date.toLocaleString());
    }

}
